package com.heima.wemedia.controller.v1;


import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmChannel;
import com.heima.wemedia.service.IWmChannelService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 频道信息表 前端控制器
 * </p>
 *
 * @author chana
 * @since 2024-08-15
 */
@RestController
@RequestMapping("/api/v1/channel")
@Api("频道信息")
public class WmChannelController {

    @Resource
    private IWmChannelService iWmChannelService;

    @GetMapping("/channels")
    @ApiOperation("查询频道")
    public ResponseResult channels(){
        return iWmChannelService.channels();
    }

}
